package com.baitengsoft.patentservicemonitor.api.dao;

import com.baitengsoft.patentservicemonitor.api.model.RptPatentDataAreaModel;
import com.baitengsoft.patentservicemonitor.api.model.param.RptPatentDataAreaParam;
import com.baitengsoft.patentservicemonitor.api.entity.RptPatentDataAreaEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by 周俊 on 2017/12/14.
 */
@Mapper
public interface RptPatentDataAreaDao extends BaseDao<RptPatentDataAreaEntity>{

    /**
     * 获取RptPatentDataArea表对应数据数量
     */
    int getRptPatentDataAreaCount(@Param("AreaID")Integer AreaID, @Param("DateYM")Integer DateYM, @Param("PlatformID")Integer PlatformID);

    /**
     * 获取一条数据
     */
    RptPatentDataAreaEntity queryRptPatentDataAreaByQuery(@Param("AreaID")Integer AreaID, @Param("DateYM")Integer DateYM, @Param("PlatformID")Integer PlatformID);
}
